package com.gw.quotes.entity.business;

import java.io.Serializable;
import java.util.List;

public class OrderListEntity implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * 结果码
	 */
	private int result;

	/**
	 * 结果信息
	 */
	private String msg;

	public int getResult() {
		return result;
	}

	public void setResult(int result) {
		this.result = result;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	/**
	 * 订单数据列表
	 */
	private List<OrderItem> orderlist;

	public List<OrderItem> getOrderlist() {
		return orderlist;
	}

	public void setOrderlist(List<OrderItem> orderlist) {
		this.orderlist = orderlist;
	}

	public static class OrderItem implements Serializable {
		private static final long serialVersionUID = 1L;
		/**
		 * 订单guid
		 */
		private String orderguid;

		/**
		 * 订单编号
		 */
		private String code;

		/**
		 * 购买单位名称
		 */
		private String buyerorgname;

		/**
		 * 是否已起草合同
		 */
		private boolean hasContract;

		/**
		 * 对应商品品目
		 */
		private String goodsclassname;

		/**
		 * 商品数量
		 */
		private int qty;

		/**
		 * 订单总额
		 */
		private Double total;
		
		/**
		 * 订单状态
		 */
		private int status;

		private List<OrderGoodsItem> orderGoodsList;

		public static class OrderGoodsItem implements Serializable {
			private static final long serialVersionUID = 1L;

			/**
			 * 订单商品编号
			 */
			private String ordergoodsguid;

			/**
			 * 行情guid
			 */
			private String priceguid;

			/**
			 * 商品guid
			 */
			private String goodsguid;

			/**
			 * 订单guid
			 */
			private String orderguid;

			/**
			 * 商品名称
			 */
			private String goodsname;

			/**
			 * 商品图片路径
			 */
			private String imgurl;

			public String getOrdergoodsguid() {
				return ordergoodsguid;
			}

			public void setOrdergoodsguid(String ordergoodsguid) {
				this.ordergoodsguid = ordergoodsguid;
			}

			public String getPriceguid() {
				return priceguid;
			}

			public void setPriceguid(String priceguid) {
				this.priceguid = priceguid;
			}

			public String getGoodsguid() {
				return goodsguid;
			}

			public void setGoodsguid(String goodsguid) {
				this.goodsguid = goodsguid;
			}

			public String getOrderguid() {
				return orderguid;
			}

			public void setOrderguid(String orderguid) {
				this.orderguid = orderguid;
			}

			public String getGoodsname() {
				return goodsname;
			}

			public void setGoodsname(String goodsname) {
				this.goodsname = goodsname;
			}

			public String getImgurl() {
				return imgurl;
			}

			public void setImgurl(String imgurl) {
				this.imgurl = imgurl;
			}

		}

		public int getStatus() {
			return status;
		}

		public void setStatus(int status) {
			this.status = status;
		}

		public String getOrderguid() {
			return orderguid;
		}

		public void setOrderguid(String orderguid) {
			this.orderguid = orderguid;
		}

		public String getCode() {
			return code;
		}

		public void setCode(String code) {
			this.code = code;
		}

		public String getBuyerorgname() {
			return buyerorgname;
		}

		public void setBuyerorgname(String buyerorgname) {
			this.buyerorgname = buyerorgname;
		}

		public boolean isHasContract() {
			return hasContract;
		}

		public void setHasContract(boolean hasContract) {
			this.hasContract = hasContract;
		}

		public String getGoodsclassname() {
			return goodsclassname;
		}

		public void setGoodsclassname(String goodsclassname) {
			this.goodsclassname = goodsclassname;
		}

		public int getQty() {
			return qty;
		}

		public void setQty(int qty) {
			this.qty = qty;
		}

		public Double getTotal() {
			return total;
		}

		public void setTotal(Double total) {
			this.total = total;
		}

		public List<OrderGoodsItem> getOrderGoodsList() {
			return orderGoodsList;
		}

		public void setOrderGoodsList(List<OrderGoodsItem> orderGoodsList) {
			this.orderGoodsList = orderGoodsList;
		}

	}

}
